import Vue from 'vue';
import VueRouter from "vue-router";
import home from "@/views/home";
import test from "@/views/test";
import list from "@/views/list";

Vue.use(VueRouter);
const routes = [
    {path: '/', redirect: '/home/zwx'},
    {path: '/home/:key', component: home},
    {path: '/list', component: list},
    {path: '/test', component: test},

]
export default new VueRouter({
    routes
})
